package com.atguigu.yygh.service;

import com.atguigu.yygh.model.hosp.Department;
import com.atguigu.yygh.vo.hosp.DepartmentQueryVo;
import com.atguigu.yygh.vo.hosp.DepartmentVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * @author zr
 * @date 2021/12/12 21:32
 */
public interface DepartmentService {

    /**
     * 上传科室信息
     */
    void saveDepartment(Map<String, Object> paramMap);

    /**
     * 条件查询带分页 科室
     *
     * @param page
     * @param limit
     * @param departmentQueryVo
     * @return
     */
    Page<Department> findPageDepartment(Integer page, Integer limit, DepartmentQueryVo departmentQueryVo);

    void removeDepartment(String hosCode, String depCode);

    /**
     * 根据医院编号 查询科室列表
     *
     * @param hosCode
     * @return
     */
    List<DepartmentVo> findDeptTree(String hosCode);

    /**
     * 根据科室编号，和医院编号，查询科室名称
     *
     * @param hosCode
     * @param depCode
     * @return
     */
    String getDepName(String hosCode, String depCode);

    /**
     * 获取科室
     *
     * @param hosCode
     * @param depCode
     * @return
     */
    Department getDepartment(String hosCode, String depCode);
}
